/*  1:   */ package org.intellij.plugins.relaxNG.compact;
/*  2:   */ 
/*  3:   */

import com.intellij.icons.AllIcons.FileTypes;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.fileTypes.FileTypeConsumer;
import com.intellij.openapi.fileTypes.FileTypeFactory;
import com.intellij.openapi.fileTypes.LanguageFileType;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */
/* 12:   */ 
/* 13:   */ public class RncFileType
/* 14:   */   extends LanguageFileType
/* 15:   */ {
/* 16:   */   public static final String RNC_EXT = "rnc";
/* 17:38 */   private static final FileType a = new RncFileType();
/* 18:   */   
/* 19:   */   private RncFileType()
/* 20:   */   {
/* 21:41 */     super(RngCompactLanguage.INSTANCE);
/* 22:   */   }
/* 23:   */   
/* 24:   */   @NotNull
/* 25:   */   @NonNls
/* 26:   */   public String getName()
/* 27:   */   {
/* 28:47 */     String tmp2_0 = "RNG Compact";
/* 29:47 */     if (tmp2_0 == null) {
/* 30:47 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/compact/RncFileType", "getName" }));
/* 31:   */     }
/* 32:47 */     return tmp2_0;
/* 33:   */   }
/* 34:   */   
/* 35:   */   @NotNull
/* 36:   */   public String getDescription()
/* 37:   */   {
/* 38:52 */     String tmp2_0 = "RELAX NG Compact Syntax";
/* 39:52 */     if (tmp2_0 == null) {
/* 40:52 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/compact/RncFileType", "getDescription" }));
/* 41:   */     }
/* 42:52 */     return tmp2_0;
/* 43:   */   }
/* 44:   */   
/* 45:   */   @NotNull
/* 46:   */   @NonNls
/* 47:   */   public String getDefaultExtension()
/* 48:   */   {
/* 49:58 */     String tmp2_0 = "rnc";
/* 50:58 */     if (tmp2_0 == null) {
/* 51:58 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/compact/RncFileType", "getDefaultExtension" }));
/* 52:   */     }
/* 53:58 */     return tmp2_0;
/* 54:   */   }
/* 55:   */   
/* 56:   */   @Nullable
/* 57:   */   public Icon getIcon()
/* 58:   */   {
/* 59:63 */     return AllIcons.FileTypes.Text;
/* 60:   */   }
/* 61:   */   
/* 62:   */   public static FileType getInstance()
/* 63:   */   {
/* 64:67 */     return a;
/* 65:   */   }
/* 66:   */   
/* 67:   */   public static class Factory
/* 68:   */     extends FileTypeFactory
/* 69:   */   {
/* 70:   */     public void createFileTypes(@NotNull FileTypeConsumer paramFileTypeConsumer)
/* 71:   */     {
/* 72:72 */       if (paramFileTypeConsumer == null) {
/* 73:72 */         throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/plugins/relaxNG/compact/RncFileType$Factory", "createFileTypes" }));
/* 74:   */       }
/* 75:72 */       paramFileTypeConsumer.consume(RncFileType.a, "rnc");
/* 76:   */     }
/* 77:   */   }
/* 78:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.compact.RncFileType

 * JD-Core Version:    0.7.0.1

 */